package com.wanmait.model.pojo;

import java.io.Serializable;
import java.util.Date;

/**
    * 正式发起一个采购
    */
public class Procurement implements Serializable {
    private Integer id;

    /**
    * 发起人
    */
    private Integer staffId;

    /**
    * 选择一个采购模板
    */
    private Integer procurementModelId;

    /**
    * 选择一个供应商
    */
    private Integer supplierId;

    /**
    * 采购的商品id
    */
    private Integer productId;

    /**
    * 发起时间
    */
    private Date time;

    /**
    * 备注
    */
    private String remark;

    /**
    * 是否需要评估，可通过表risk_assessment判断
    */
    private Integer isAssessment;

    /**
    * 0删除  1存在
    */
    private Integer state;

    /**
    * 流程号
    */
    private Integer processNumber;

    /**
    * 当前节点
    */
    private Integer node;

    /**
    * 批示状态（0不通过  1审批中  2通过）
    */
    private Integer approval;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    public Integer getProcurementModelId() {
        return procurementModelId;
    }

    public void setProcurementModelId(Integer procurementModelId) {
        this.procurementModelId = procurementModelId;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getIsAssessment() {
        return isAssessment;
    }

    public void setIsAssessment(Integer isAssessment) {
        this.isAssessment = isAssessment;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getProcessNumber() {
        return processNumber;
    }

    public void setProcessNumber(Integer processNumber) {
        this.processNumber = processNumber;
    }

    public Integer getNode() {
        return node;
    }

    public void setNode(Integer node) {
        this.node = node;
    }

    public Integer getApproval() {
        return approval;
    }

    public void setApproval(Integer approval) {
        this.approval = approval;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", staffId=").append(staffId);
        sb.append(", procurementModelId=").append(procurementModelId);
        sb.append(", supplierId=").append(supplierId);
        sb.append(", productId=").append(productId);
        sb.append(", time=").append(time);
        sb.append(", remark=").append(remark);
        sb.append(", isAssessment=").append(isAssessment);
        sb.append(", state=").append(state);
        sb.append(", processNumber=").append(processNumber);
        sb.append(", node=").append(node);
        sb.append(", approval=").append(approval);
        sb.append("]");
        return sb.toString();
    }
}